package com.wukaige.order.feign;

import com.wukaige.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(name = "cloud-user")
public interface UserFeign {

    @RequestMapping("/user/getunamebyuid")
    public User getunamebyuid(@RequestBody Integer uid);
}
